<html>
<head>
<title>客户详情</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="../../build/common/base.css" rel="stylesheet">
	<script type="text/javascript" src="../../build/common/base.js"></script>
	<script type="text/javascript" src="../../build/common/gridList.js"></script>
	<script type="text/javascript">
		$(function(){
			var customerId = $.getParam("id");
			$("#listFrame").attr("src","customerDetail.html?id="+customerId);
			$("#listFrame2").attr("src","followupList.html?customerId="+customerId);
			$("#listFrame3").attr("src","contractList.html?customerId="+customerId);
			
			if(!window.localStorage)return;
			
			
			$("#customerTab").click(function(){
				localStorage.customerTabReminder_="customerTab";
			})
			$("#customerFollowupTab").click(function(){
				localStorage.customerTabReminder_="customerFollowupTab";
			})
			$("#customerContractTab").click(function(){
				localStorage.customerTabReminder_="customerContractTab";
			})
			
			if(localStorage.customerTabReminder_ ==="customerFollowupTab" ){
				$("#"+localStorage.customerTabReminder_).tab('show');
			}
			if(localStorage.customerTabReminder_ ==="customerContractTab" ){
				$("#"+localStorage.customerTabReminder_).tab('show');
			}
		})
	
	</script>
</head>
<body>
	<ul class="nav nav-tabs" role="tablist">
	    <li role="presentation"  class="active"><a href="#customer" role="tab" data-toggle="tab" id="customerTab">客户详情</a></li>
	    <li role="presentation"><a href="#customerFollowup"  data-toggle="tab" id="customerFollowupTab">跟进记录</a></li>
	    <li role="presentation"><a href="#customerContract"  data-toggle="tab" id="customerContractTab">合同记录</a></li>
	 </ul> 
	 <div  class="tab-content">
	 	<div id="customer" class="tab-pane active" style="height: 90%">
	 		<iframe id="listFrame" src="" frameborder="no" width="100%" height="100%"></iframe>
	 	</div>
	 	<div id="customerFollowup" class="tab-pane " style="height: 90%">
	 		<iframe id="listFrame2" src="" frameborder="no" width="100%" height="100%"></iframe>
	 	</div>
	 	<div id="customerContract" class="tab-pane " style="height: 90%">
	 		<iframe id="listFrame3" src="" frameborder="no" width="100%" height="100%"></iframe>
	 	</div>
	 </div>
</body>
</html>